<%-- 
    Document   : Erro
    Created on : 30/08/2010, 08:53:25
    Author     : progerio003
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


        <!-- Verifica se o usuário se logou no sistema e se tem permissão para acesso
             caso não tenha será redirecionado para a tela de login
        -->
        <%if (session.getAttribute("login") == null) {%>
        <jsp:forward page="Login.jsp" />
        <%}%>

        <% if (!session.getAttribute("permissoes").equals("")) {%>
        <jsp:forward page="Login.jsp" />
        <%}%>
        <!-- Fim das verificações  -->



        <title>Pal Web</title>



        <style type="text/css">
            body {
                font: 100% Verdana, Arial, Helvetica, sans-serif;
                background: #ffffff;
                margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
                padding: 0;
                text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
                color: #000000;
            }

            .oneColElsCtr #container {
                width: 46em;
                background: #A2B5CD;
                margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
                border: 1px solid #000000;
                text-align: left; /* this overrides the text-align: center on the body element. */
            }
            .oneColElsCtr #mainContent {
                padding: 0 20px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
            }
            .formulario{
                font-size: 14px;
                font-weight: bold;
                background-color: gray;
            }

        </style>
    </head>
    <body class="oneColElsCtr">

        <div id="container">
            <div id="mainContent" style="height: 540px;">
                <img alt="salvadorcard" src="images/Salvadorcard_logo_grande.gif"/>
                <br/><br/><br/>
                <center><img alt="palm web" src="images/palm_web.png"/></center>
                <center>
                    <table width="48%" border="0">
                        <tr>
                            <td><hr></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td align="center" class="StandardGray2">Desculpe, ocorreu um erro! <br>
		Notifique o administrador do sistema sobre  o erro abaixo:</td>
                        </tr>
                        <tr>
                            <td align="center" class="StandardGray2 style3">
                                <br>
                                <%while (exception != null) {
                                                out.println("<b>" + exception.getMessage() + "</b><br>");
                                                StackTraceElement ste[] = exception.getStackTrace();
                                                //for(int i=0; i<ste.length; i++) {
                                                out.println(ste[0] + "<br/>");
                                                //}
                                                exception = exception.getCause();
                                            }
                                %></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td><hr></td>
                        </tr>
                    </table>
                </center>


            </div>
        </div>
    </body>
</html>
